﻿using MediatR;
using SmartTracking.ErrorCode;
using System.ComponentModel.DataAnnotations;

namespace SmartTracking.API.Write.Application.Commands.Role_command
{
    public class UpdateRoleCommand:IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleName { get; set; }
        /// <summary>
        /// 权限ID
        /// </summary>
        public List<int> PermissionId { get; set; }
        /// <summary>
        /// 更新用户
        /// </summary>
        public string? UpdateUserNo { get; set; }
        /// <summary>
        /// 角色描述
        /// </summary>
        public string RoleMessage { get; set; }
    }
}
